<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>数据绑定</title>
        <script type="text/javascript" src="../js/vue.js"></script>
    </head>
    <body>
        <div id="root">
            <!-- <h3>hello {{name}}</h3> -->
           单向数据绑定:<input type="text" v-bind:value="name"><br />
           双向数据绑定:<input type="text" v-model:value="name">
        </div>
        <script type="text/javascript" >
            Vue.config.productionTip = false;
            new Vue({
                el:'#root',
                data: {
                    name:'尚硅谷',
                }
            })
        </script>
    </body>
</html>